home *** CD-ROM | disk | FTP | other *** search
- #define CURSES_LIBRARY 1
- #include <curses.h>
-
- #ifdef PDCDEBUG
- char *rcsid__clrscr = "$Header: C:\CURSES\private\RCS\_clrscr.c 2.1 1993/06/18 20:23:15 MH Rel MH $";
- #endif
-
-
-
-
- /*man-start*********************************************************************
-
- PDC_clr_scrn() - Clears the physical screen and homes the cursor.
-
- PDCurses Description:
- This is an internal routine called by the doupdate() routines.
-
- PDCurses Return Value:
- This routine always returns OK.
-
- Portability:
- PDCurses int PDC_clr_scrn( WINDOW* win );
-
- **man-end**********************************************************************/
-
- int PDC_clr_scrn(WINDOW *win)
- {
- chtype attrs = win->_attrs;
-
- #ifdef PDCDEBUG
- if (trace_on) PDC_debug("PDC_clr_scrn() - called\n");
- #endif
-
- PDC_scroll(0, 0, LINES - 1, COLS - 1, 0, attrs);
- PDC_gotoxy(0, 0);
- return( OK );
- }
-